static void Write_AN1_Waypoint(gbfile* f, an1_waypoint_record* wpt)
{
- short len;
-
WriteShort(f, wpt->magic);
WriteLong(f, wpt->unk1);
WriteLong(f, wpt->lon);
WriteShort(f, wpt->unk5);
WriteDouble(f, wpt->radius);
- len = strlen(wpt->name) + 1 + 2 + 2 +
+ short len = strlen(wpt->name) + 1 + 2 + 2 +
(wpt->url ? strlen(wpt->url) : 0) + 2 +
(wpt->comment ? strlen(wpt->comment) : 0) + 8 + 8;
WriteShort(f, len);
// Having a Windows background, this software encodes degree marks in
// Windows CP-1252. We don't attempt to handle all the subtleties of that,
// but since we write degree marks and we know how they're encoded, use this.
-static const char kDegreeSymbol = 0xB0;
+static const unsigned char kDegreeSymbol = 0xB0;
static gtxt_flags_t gtxt_flags;
// We could potentially write SHPT_POINTZ, but we would have
// to address what to do when we don't have altitude data.
shpobject = SHPCreateSimpleObject(SHPT_POINT, 1,
- (double*)(void*)&wpt->longitude,
- (double*)(void*)&wpt->latitude,
- (double*)(void*)&wpt->altitude);
+ &wpt->longitude,
+ &wpt->latitude,
+ &wpt->altitude);
int iShape = SHPWriteObject(ohandle, -1, shpobject);
SHPDestroyObject(shpobject);
DBFWriteStringAttribute(ohandledb, iShape, nameFieldIdx,